package giftmail.staticentity;

import java.io.Serializable;

import com.google.gson.Gson;

public class MessageEntity  implements Serializable {

	private static final long serialVersionUID = 1L;

	public Integer code;
	
	public String message;

	public MessageEntity() {
		super();
	}

	public MessageEntity(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public String toJson() {
		Gson gson = new Gson();
		return gson.toJson(this);
	}
	
}
